package it.isa.demo.entity;

/**
 * @author Corgile
 * @date 2022-02-26
 */
public class Book {
	private Integer bookId;
	private String name;
	private String address;
	private int price;

	public Book(String name, String address, int price, Integer bookId) {
		this.name = name;
		this.address = address;
		this.price = price;
		this.bookId = bookId;
	}

	public Book() {
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public int getPrice() {
		return price;
	}

	public void setPrice(int price) {
		this.price = price;
	}

	public Integer getBookId() {
		return bookId;
	}

	public void setBookId(Integer bookId) {
		this.bookId = bookId;
	}


	@Override
	public String toString() {
		return "Book{" +
				"bookId=" + bookId +
				", name='" + name + '\'' +
				", address='" + address + '\'' +
				", price=" + price +
				'}';
	}
}
